import type { AppRouteModule } from '@/router/types';

import { LAYOUT } from '@/router/constant';
import { t } from '@/hooks/web/useI18n';

const learn: AppRouteModule = {
  path: '/learn',
  name: 'learn',
  component: LAYOUT,
  redirect: '/learn/echarts/map',
  meta: {
    orderNo: 1, //排序
    icon: 'ion:bar-chart-outline',
    title: t('routes.learn.learn'),
  },
  children: [
    {
      path: 'blank',
      name: 'learnBlank',
      meta: {
        title: t('routes.learn.blank'),
      },
      component: () => import('@/views/learn/Blank.vue'),
    },
    {
      path: 'basic',
      name: 'learnBasic',
      meta: {
        title: t('routes.learn.basic'),
      },
      component: () => import('@/views/learn/basic/Index.vue'),
    },
  ],
};

export default learn;
